package com.yisoo.rs.common.vo;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import javafx.beans.NamedArg;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class MovieJsonVo implements Serializable {
//    这个和com.yisoo.rs.rsfile.vo.MovieSourceJsonVo一样
        private static final long serialVersionUID = -432908543160176349L;
        private String mvName;
        private String mvRegion;
        private Integer mvRelease;
        private Integer mvLength;
        private Double mvScore;
        private String mvTop;
        private String mvImageUrl;
        private String mvEnName;
        private String mvDoubanId;
        private List<String> mvDirector = new ArrayList<>();
        private List<String> mvStar = new ArrayList<>();
        private List<String> mvType = new ArrayList<>();
        private List<String> mvWriter = new ArrayList<>();
        public static MovieJsonVo JsonToObject(String json){
                return JSON.parseObject(json,MovieJsonVo.class);
        }
}
